const state = {
  hoverMenu: {
    menuChildren: [], // 显示的三级菜单内容
    top: null, // 显示的定位高度
    isShow: false, // 是否显示三级菜单
  },
  currentRoute: '', // 当前路由
}

const mutations = {
  SET_TOP: (state, data) => {
    state.hoverMenu = data
  }
}

const actions = {
  setTop({ commit }, data) {
    commit('SET_TOP', data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
